import wx 
#import the newly created GUI file 
import calcSquare
class CalcFrame(calcSquare.CalcFrame):
   def __init__(self,parent): 
      calcSquare.CalcFrame.__init__(self,parent)
   
   def findSquare(self, event):
     num = int(self.inputNum.GetValue())
     self.calcRes.SetValue(str(num * num))
     
if __name__ == '__main__':
    app = wx.App(False)
    frame = CalcFrame(None)
    frame.Show(True)
    #start the applications
    app.MainLoop()